package com.mhh.selary.backend.dto.config;

import com.mhh.sdk.beans.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

/**
 * @author mhh
 * @date 2020-09-09 15:47:08
 */
@Getter
@Setter
@ApiModel("保存环境入参")
public class EnvSaveDTO extends BaseDTO {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "环境名称", required = true)
    @NotEmpty(message = "环境名称不能为空")
    @Length(max = 12, message = "环境名称不能超过12个字符")
    private String envName;
}
